import Mock from "mockjs"
const List = Mock.mock({
    "list|10": [
        {
            "id|+1": 1,
            "name": "@cname",
            'tel': /\d{5,10}/,
            "title": '@ctitle',
            "company": "@ctitle(4,5)",
            "newhouse|50-100": 0,
            "name1": "@ctitle(2,3)" + "部门",
            "time": "@datetime(yyyy-MM-dd HH:mm:ss)",
            "twohouse|50-100": 0,
            "Renting|60-100": 0,
            'ding|1': /^1[345789]\d{9}$/,
            "company": "@ctitle(4,5)",
            "state|1": [true, false],
            "company": "@ctitle(4,5)",
            "newhouse|50-100": 0,
            'date|1': ['直播中', "已结束"],
            "time": "@datetime(yyyy-MM-dd HH:mm:ss)",
            "twohouse|50-100": 0,
            "Renting|60-100": 0,

            'phone|1': /^1[345789]\d{9}$/,
            "communityName": "@ctitle(3, 5)" + '小区',
            "address": '@county(true)',  // 添加随机地址信息
            "image": "@image(50x50,@color)",
            "area": '@integer(50, 200)' + "ms",  // 添加随机面积信息，范围为 50 到 200
            "status|1": ["待审核", "待审核", "审核不通过", "审核通过"],
            "type|1": ["二手房出售", "有房出租", "我想找个房", "我想租个房", "有房出租"],


            "twohouse|50-100": 0,
            "Renting|60-100": 0,

            "num|10-12": 1,
            "password|100000-999999": 0,
            "job|1": ["接线员", "换线员"],
            "img": "@image(80x80,@color)",


        }
    ]
})

export default List.list
